package com.xur.springboot.service.impl;

import com.xur.springboot.entity.details;
import com.xur.springboot.entity.internship;
import com.xur.springboot.mapper.detailsMapper;
import com.xur.springboot.service.detailsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class detailsServiceImpl implements detailsService {

    @Autowired
    private detailsMapper detailsMapper;

    //根据id查询职位信息

    @Override
    public List<details> querydetailsByInternship_id(int internship_id) {
        return this.detailsMapper.querydetailsByInternship_id(internship_id);
    }
}